home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / DC06.422 < prev    next >
Text File  |  1993-03-29  |  4KB  |  140 lines

  1. DOC06.MOD -=Another ASV Mod=-
  2. The Doctor #1 @17750
  3. Wed Mar 24 18:11:53 1993
  4. 2Reply 3: 1Requested0
  5.  
  6.  
  7. ┌───────────────────────────────────────────────────────────────────────────┐
  8. │Mod Name: DOC06.MOD               Mod Authors: The Doctor 1@7750           │
  9. │Difficulty: 1/10                  Date: 3/18/93                            │
  10. │WWIV Version: 4.22 (Should Work In Any Version)                            │
  11. │Files affected: NEWUSER.C                                                  │
  12. │Description: Another ASV Mod (I do it MY way!)                             │
  13. │                                                                           │
  14. └───────────────────────────────────────────────────────────────────────────┘
  15.  
  16. Extended Discription:
  17.  
  18. I have seen alot of complex and incredibly sophisticated ASV mods come
  19. through the network.  They do way more than I really want or need so I
  20. decided to write my own.  This one has several interesting features.
  21. First, it displays a file called SYSOP.MSG which should contain your
  22. conditions for ASV validation.  If the newuser does agree with the terms,
  23. it then asks if he is a registered WWIV sysop.  It also asks for his BBS
  24. name and phone number which is saved as the user note.
  25.  
  26. This mod makes use of the auto-validation key feature.  It's set to use
  27. whatever value is set for the Alt-F10 key.  I also have the exemption
  28. set to 9.  That makes the use ratio exempt from post/call and ul/dl
  29. ratios.
  30.  
  31.  
  32. Disclaimer:
  33.  
  34. It works here.  You installed it.  You deal with it.
  35.  
  36.  
  37. Legend:
  38.  
  39. + Add Line
  40. - Delete Line
  41. * Change Line
  42. = Existing
  43. ! Where to change to add support for other nets (specific to this mod)
  44.  
  45.  
  46. Step 1:
  47.         Back up your source.  It's the law...
  48.  
  49.  
  50. Step 2:
  51.  
  52. Open up NEWUSER.C,
  53.  
  54.          Block copy these function before void newuser();
  55.  
  56. void auto_sysop_val()
  57.  {
  58.   char s[41];
  59.  
  60.   nl();
  61.   prt( 1,"Are You Currently The SysOp Of A BBS? (No Co-SysOps) " );
  62.   if(yn()) {
  63.     printfile( "SYSOP" );
  64.     pausescr();
  65.     prt( 1,"Are You Sure You Want To Do This?  " );
  66.     if(yn()) {
  67.        nl();
  68.        prt(1,"Have You Registered Your WWIV System? ");
  69.          if(yn()) {
  70.            nl();
  71.            pl("1Enter Your Registration Number Now.");0
  72.            outstr("2:");0
  73.            mpl(6);
  74.            input(s,6);
  75.            thisuser.wwiv_regnum=atoi(s);
  76.          } else nl(); pl("1Please support the concept of shareware and register 0
  77. WWIV.");
  78.         nl();
  79.         pl("1Please Enter Your BBS Name & Phone Number Now.");0
  80.         outstr("2:");0
  81.         mpl(50);
  82.         input(thisuser.note,50);
  83.         sysoplog( "-=- Validated As A Visiting SysOp -=-" );
  84.         set_autoval( 9 );
  85.         thisuser.exempt=9;
  86.           }
  87.        }
  88.  }
  89.  
  90.  
  91. Step 3:
  92.         Go down abit and search for this part of void newuser and add the
  93.         line indicated.  You can put this almost anyplace in there but I
  94.         like to be neat...hehe
  95.  
  96. =      nl();
  97. =      i=get_protocol(xf_down);
  98. =      if (i)
  99. =        thisuser.defprot=i;
  100. =    }
  101. +    auto_sysop_val();        /*Add ME Please*/
  102.  
  103.  
  104. Step 4:
  105.         MAKE FCNS (if applicable) or add the auto_sysop_val to the newuser.c
  106.         section of FCNS.H
  107.  
  108.  
  109. Step 5:
  110.         Compile!
  111.  
  112.  
  113. If you use this mod, drop me a line and let me know...
  114.  
  115.                                                 The Doctor
  116.                                                  1 @7750
  117.  
  118. Sample SYSOP.MSG
  119.  
  120. -----------------------------------------------------------------------
  121. -----------------------------------------------------------------------
  122.  
  123. You have activated our auto-sysop validation feature.  I require
  124. your BBS name and number as part of the validation process. If you 
  125. activated this by accident, please press 'N' now...
  126.  
  127. If you do not provide this info, I will be forced to delete your
  128. account here.
  129.  
  130. -----------------------------------------------------------------------
  131. -----------------------------------------------------------------------
  132.  
  133.  
  134.  
  135.                                                   The Doctor
  136.                                            The Original, You Might Say
  137.  
  138.  
  139.  
  140.